package com.sys.server.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "project")
@ApiModel(value = "项目表")
public class ProjectEntity implements Serializable {

    @TableId(value = "projid", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer projid;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "描述")
    private String maintext;
    @ApiModelProperty(value = "是否公开  否--不公开 是--公开")
    private String ispublic;
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reltime;
    @ApiModelProperty(value = "评分")
    private int score;
    @ApiModelProperty(value = "评语")
    private String comment;
    @ApiModelProperty(value = "附件路径")
    private String attachment;
    @ApiModelProperty(value = "创建人")
    private String reluser;

}
